import i18next from 'i18next'
import zh from './modules/zh'
import en from './modules/en'
import { initReactI18next } from 'react-i18next'

i18next.use(initReactI18next).init({
  resources: {
    zh: {
      translation: zh,
    },
    en: {
      translation: en,
    },
  },
  fallbackLng: 'zh',
  debug: false,
  interpolation: {
    escapeValue: false, // not needed for react as it escapes by default
  },
})

export default i18next